package com.paper.tiger.easy.rpc.core;

import java.util.List;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/5/31 09:02
 * @since JDK 1.8
 */
public class RegisterData
{

    /**
     * {@link ServerType}
     */
    private Integer type;


    /**
     * 服务注册信息
     */
    private List<Stub> list ;


    /**
     * 提供服务id
     */
    private String ip;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 服务名称 - 如果服务名称相同，他们是集群
     */
    private String appName;

    public String getIp()
    {
        return ip;
    }

    public void setIp(String ip)
    {
        this.ip = ip == null ? null : "".equals(ip.trim()) ? null : ip.trim();
    }

    public Integer getPort()
    {
        return port;
    }

    public void setPort(Integer port)
    {
        this.port = port;
    }

    public String getAppName()
    {
        return appName;
    }

    public void setAppName(String appName)
    {
        this.appName = appName == null ? null : "".equals(appName.trim()) ? null : appName.trim();
    }


    public Integer getType()
    {
        return type;
    }

    public void setType(Integer type)
    {
        this.type = type;
    }

    public List<Stub> getList()
    {
        return list;
    }

    public void setList(List<Stub> list)
    {
        this.list = list;
    }

}
